package com.ruoyi.school.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.school.mapper.CommonMapper;
import com.ruoyi.school.domain.Common;
import com.ruoyi.school.service.ICommonService;

/**
 * 评论模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-10
 */
@Service
public class CommonServiceImpl implements ICommonService 
{
    @Autowired
    private CommonMapper commonMapper;

    /**
     * 查询评论模块
     * 
     * @param id 评论模块主键
     * @return 评论模块
     */
    @Override
    public Common selectCommonById(Long id)
    {
        return commonMapper.selectCommonById(id);
    }

    /**
     * 查询评论模块列表
     * 
     * @param common 评论模块
     * @return 评论模块
     */
    @Override
    public List<Common> selectCommonList(Common common)
    {
        return commonMapper.selectCommonList(common);
    }


}
